package com.example.springboot_manage.service;

import com.example.springboot_manage.model.Account;
import com.example.springboot_manage.model.Admin;

import javax.servlet.http.HttpSession;
import java.util.Map;

public interface AccountService {

     public Account findByUsername(String username);
     public Map<String,Object> loginVerify(String userName,String passWord);
     public String updateImages(String newFileName, HttpSession session);

     String login(Admin admin);
     Integer findAdminId(Admin admin);
     Admin validate(String ticket);
     void logout(String ticket);

     /**
      * 查找个人信息
      * @param id
      * @return
      */
     Account findLoginInfo(Integer id,String ticket);

     /**
      * 更改个人信息
      * @param account
      * @return
      */
     Account updatePersonInfo(Account account,String ticket);


}
